<?php
/**
 * Created by PhpStorm.
 * User: PHP
 * Date: 2021/6/9
 * Time: 10:41
 */
namespace App\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Http\Request;

class UploadRequest extends FormRequest
{
    public function authorize()
    {
        return true;
    }


    //验证规则
    protected $rules = [

    ];


    public function messages() {
        return  [


        ];

    }


    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = $this->rules;

        /*if (Request::getPathInfo() == '/adminapi/notice/update')//如果是login方法
        {
            $rules['id'] = 'required';
        }
*/

        return $rules;

    }







































}